package com.phenix.network.interceptor

import android.util.Log
import okhttp3.Interceptor
import okhttp3.Response

class ResponseInterceptor: Interceptor {

    companion object {
        const val TAG = "ResponseInterceptor"
    }

    override fun intercept(chain: Interceptor.Chain): Response {
        val start = System.currentTimeMillis()
        val response = chain.proceed(chain.request())
        Log.d(TAG, "requestTime = ${System.currentTimeMillis() - start}ms")
        return response
    }
}